package ar.com.vates.vspJava.capitulo4;

import java.util.Random;

public class MiClase {

	private static final int VALUE_MAX = 5;

	public int miMetodo() throws MiException{
		Random random = new Random();
		int value = random.nextInt(VALUE_MAX);
		
		if (value==0){
			throw new MiException();
		}else {
			return value;
		}		
	}
	
}
